package com.zgh.leo.signin611;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

public class TestActivity extends AppCompatActivity implements ITestController {
    private TextView textView;
    TestPresenter testPresenter;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        textView=new TextView(this);
        textView.setText("Hello world!");
        textView.setTextSize(40f);
        setContentView(textView);
        testPresenter=new TestPresenter(this);
        testPresenter.setText();
    }

    @Override
    public void setText(String text) {
        textView.setText(text);
    }
}
